//
//  UIImage+Addtions.m
//  Weibbo
//
//  Created by xntech on 13-7-21.
//  Copyright (c) 2013年 Omnivores. All rights reserved.
//

#import "UIImage+Addtions.h"

@implementation UIImage (Addtions)
+ (UIImage *)imageWithName:(NSString *)name
{
    UIImage  * image = [UIImage imageNamed:name];
    if (image != nil) {
        return  image;
    }
    image = [UIImage imageWithContentsOfFile:UIDocumentFile(name)];
    return image;
}
@end
